package org.jsola.hr.service;

import org.jsola.core.Page;
import org.jsola.core.service.IService;
import org.jsola.hr.dao.ITransferAccountsBankDetailDAO;
import org.jsola.hr.dto.TransferAccountsBankDetailAddDTO;
import org.jsola.hr.dto.TransferAccountsBankDetailUpdateDTO;
import org.jsola.hr.entity.TransferAccountsBankDetailDO;
import org.jsola.hr.query.TransferAccountsBankDetailQuery;
import org.jsola.hr.vo.TransferAccountsBankDetailListVO;
import org.jsola.hr.vo.TransferAccountsBankDetailVO;
import org.jsola.user.core.TokenUser;

import java.util.List;


/**
 * 转账明细(平安银行)
 *
 * @author zhr
 */
public interface ITransferAccountsBankDetailService extends IService<ITransferAccountsBankDetailDAO, TransferAccountsBankDetailDO> {

    /**
     * 新增转账明细(平安银行)
     * @param transferAccountsBankDetailAddDTO 新增转账明细(平安银行)DTO
     * @param tokenUser 当前用户
     * @return 转账明细(平安银行)详情信息
     */
    TransferAccountsBankDetailVO save(TransferAccountsBankDetailAddDTO transferAccountsBankDetailAddDTO, TokenUser tokenUser);

    /**
     * 修改转账明细(平安银行)
     * @param transferAccountsBankDetailUpdateDTO 修改转账明细(平安银行)DTO
     * @param tokenUser 当前用户
     * @return 更新数量
     */
    int update(TransferAccountsBankDetailUpdateDTO transferAccountsBankDetailUpdateDTO, TokenUser tokenUser);


    /**
     * 批量删除转账明细(平安银行)，物理删除，更新is_valid字段，从回收站删除
     * @param tokenUser 当前用户
     * @param transferAccountsBankDetailIds 转账明细(平安银行)id
     * @return 删除数量
     */
    int deleteByIds(TokenUser tokenUser, String...transferAccountsBankDetailIds);

    /**
     * 根据转账明细(平安银行)id查找
     * @param transferAccountsBankDetailId 转账明细(平安银行)id
     * @param siteId 所属站点id
     * @return 转账明细(平安银行)详情信息
     */
    TransferAccountsBankDetailVO selectById(String transferAccountsBankDetailId, String siteId);

    /**
     * 查询转账明细(平安银行)
     * @param transferAccountsBankDetailQuery 查询条件
     * @param siteId 所属站点id
     * @return 转账明细(平安银行)列表信息
     */
    List<TransferAccountsBankDetailListVO> select(TransferAccountsBankDetailQuery transferAccountsBankDetailQuery, String siteId);

    /**
    * 查询转账明细(平安银行)记录数
    * @param transferAccountsBankDetailQuery 查询条件
    * @param siteId 所属站点id
    * @return 转账明细(平安银行)记录数
    */
    int selectCount(TransferAccountsBankDetailQuery transferAccountsBankDetailQuery, String siteId);

    /**
     * 分页查询转账明细(平安银行)
     * @param transferAccountsBankDetailQuery 查询条件
     * @param siteId 所属站点id
     * @return 转账明细(平安银行)列表信息
     */
    Page<TransferAccountsBankDetailListVO> selectPage(TransferAccountsBankDetailQuery transferAccountsBankDetailQuery, String siteId);


    /**
     * 根据转账明细(平安银行)id查找
     * @param transferAccountsBankDetailId 转账明细(平安银行)id
     * @param siteId 所属站点id
     * @return 转账明细(平安银行)
     */
    TransferAccountsBankDetailDO selectDOById(String transferAccountsBankDetailId, String siteId);

    /**
     * 查询转账明细(平安银行)
     * @param transferAccountsBankDetailQuery 查询条件
     * @param siteId 所属站点id
     * @return 转账明细(平安银行)列表
     */
    List<TransferAccountsBankDetailDO> selectDO(TransferAccountsBankDetailQuery transferAccountsBankDetailQuery, String siteId);

    /**
     * 根据 单笔交易流水号查找
     * @param sThirdVoucher 单笔交易流水号
     * @param siteId 所属站点id
     * @return 转账明细(平安银行)
     */
    TransferAccountsBankDetailDO selectDOBySThirdVoucher(String sThirdVoucher, String siteId);

}


